<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>轮播图组件</title>
		<link rel="stylesheet" href="./Bootstrap4.6.1/css/bootstrap.css">
		<script src="./Bootstrap4.6.1/js/jquery.js"></script>
		<script src="./Bootstrap4.6.1/js/bootstrap.bundle.js"></script>
	</head>
	<body>
		<!-- 轮播图组件
			data-interva: 轮播图切换的时间，单位毫秒
		 -->
		<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel" data-interval="500">
			<!-- 轮播图组件下方的横条切换按钮 
					data-slide-to : 指定点击后切换到第几个图片，从0开始
					data-target:	指向轮播组件的id
			
			-->
		  <ol class="carousel-indicators">
		    <li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
		    <li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
		    <li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
		  </ol>
		  <!-- 轮播的内容 -->
		  <div class="carousel-inner">
			  <!-- 单次显示的内容 -->
		    <div class="carousel-item active">
		      <img src="./img/img1.jpg" class="d-block w-100" alt="...">
		    </div>
		    <div class="carousel-item">
		      <img src="./img/img2.jpg" class="d-block w-100" alt="...">
		    </div>
		    <div class="carousel-item">
		      <img src="./img/img3.jpg" class="d-block w-100" alt="...">
		    </div>
		  </div>
		  <!-- 轮播组件的左侧按钮 -->
		  <button class="carousel-control-prev" type="button" data-target="#carouselExampleIndicators" data-slide="prev">
		    <span class="carousel-control-prev-icon" aria-hidden="true"></span>
		    <span class="sr-only">Previous</span>
		  </button>
		   <!-- 轮播组件的右侧按钮 -->
		  <button class="carousel-control-next" type="button" data-target="#carouselExampleIndicators" data-slide="next">
		    <span class="carousel-control-next-icon" aria-hidden="true"></span>
		    <span class="sr-only">Next</span>
		  </button>
		</div>
	</body>
</html>